package com.goldman.aplt.base.annotation;

import com.goldman.aplt.base.type.BaseEnumType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 需要加解密的字段用这个注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EncryptedColumn {
    BaseEnumType.E_ENCRY_TYPE encryType() default BaseEnumType.E_ENCRY_TYPE.IDCARD;
}
